package com.dxy.yesas2020goals.study.partone.disignprinciple.simpleresponsibility.method;

/**
 * @author victorydeng
 * @Classname Method
 * @Description 测试的方法
 * @Date 2020/2/24 22:43
 * @Created by victorydeng
 */
public class Method {

  private void modifyUserInfo(String userName, String address) {
    userName = "dxy";
    address = "xishui";
  }

  private void modifyUserInfo(String userName, String... fileds) {

  }

  //不是单一职责的体现
  private void modifyUserInfo(String userName, String address, boolean bool) {
    if (bool) {

    } else {

    }
  }

  //下面的才是单一职责的提现
  private void modifyUserName(String userName) {

  }

  private void modifyAddress(String address) {

  }
}
